﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Arcadium.GameEntities.Characters;
using Arcadium.GameEntities.Projectiles;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;

namespace Arcadium.GameEntities
{
    class RemoteWorld : World
    {
        #region Initialization

        public override void LoadContent(ContentManager content, GameSessionProperties sessionProperties)
        {
            base.LoadContent(content, sessionProperties);
            AddEntity(new Crate(this));
        }

        #endregion

        #region Public Methods

        //protected override void Add(Character enemy)
        //{
        //}
        //protected override void Add(Projectile projectile)
        //{
        //}
        //protected override void Add(Crate crate)
        //{
        //}

        //protected override void Remove(Character enemy)
        //{
        //}
        //protected override void Remove(Projectile projectile)
        //{
        //}
        //protected override void Remove(Crate crate)
        //{
        //}

        #endregion






        //public override void ReadProjectile(Microsoft.Xna.Framework.Net.PacketReader packetReader, Microsoft.Xna.Framework.Net.NetworkGamer shooter)
        //{
        //    // TODO: Remote...

        //    RemoteProjectile projectile;
        //    byte projectileType = packetReader.ReadByte();
        //    //if (projectileType == 0)
        //    projectile = new StandardBullet(this, shooter, packetReader.ReadVector2(), packetReader.ReadVector2());
        //    //else if (projectileType  == 1)
        //    //    projectile = new Missile(...
        //    AddEntity(projectile);
        //}

        //public void ReadEnemy(Microsoft.Xna.Framework.Net.PacketReader packetReader)
        //{
        //    Character enemy;
        //    byte enemyType = packetReader.ReadByte();
        //    if (enemyType == 0)
        //        enemy = new RemoteCharacter(this, CharacterType.SmallEnemy);
        //    else //if (enemyType == 1)
        //        enemy = new RemoteCharacter(this, CharacterType.BigEnemy);


        //    AddEntity(enemy);

        //}

    }
}
